<?php
class Core_Component_Catalogue_Model_Goods extends Core_Model_Entity_Dynamic_Version{

	protected $tableName = '{t}catalogue_goods';

	protected function beforeInsert(){
		$this->setWebsiteId(App::getRunningWebsite()->getId());
		$this->setCreator($GLOBALS[RC]->getIdentity()->getName());
		$this->setUpdator($GLOBALS[RC]->getIdentity()->getName());
		$this->setCreatedTime(Soul_Util_Date::dbNow());
		parent::beforeInsert();
	}

	protected function beforeUpdate(){
		$this->setUpdator($GLOBALS[RC]->getIdentity()->getName());
		parent::beforeUpdate();
	}
}